package cn.bone.ou.vote.service;

import cn.bone.base.bean.CommonResult;
import cn.bone.ou.vote.param.VoteParam;

public interface IVoteService {

    /**新增投票*/
    CommonResult add(VoteParam.AddParam param);

    /**修改投票*/
    CommonResult modify(VoteParam.ModifyParam param);

    /**列表*/
    CommonResult list(VoteParam.ListParam param);

    /**发布*/
    CommonResult publish(VoteParam.PublishParam param);

    /**取消发布*/
    CommonResult unpublish(VoteParam.UnpublishParam param);

    /**终止投票*/
    CommonResult stop(VoteParam.StopParam param);

    /**获取详情*/
    CommonResult detail(VoteParam.DetailParam param);

    /**删除投票*/
    CommonResult delete(VoteParam.DeleteParam param);

    /**结果统计*/
    CommonResult resultDetail(VoteParam.ResultDetailParam param);

    /**全部投票*/
    CommonResult memberDetail(VoteParam.MemberDetailParam param);

    /**用户投票详情*/
    CommonResult memberVoteDetail(VoteParam.MemberVoteDetailParam param);
}
